#include <iostream>
#include<bits/stdc++.h>
#define ll long long
using namespace std;
#define loop(n) for(int i=0;i<n;i++)
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
while(t--)
{
ll n,k,i,mul=1,f;
cin>>n>>k;
ll a[n];
for(i=0;i<n;i++)
{
cin>>a[i];
mul*=a[i];
}
f=2023%mul;
if(f==0)
{
cout<<"YES\n";
for(i=1;i<k;i++)
{
cout<<1<<" ";
}
cout<<2023/mul<<endl;
}
else
cout<<"NO\n";
}
}
Partitioning binary strings | Special sets |
Smallest chosen word | Going to office |
Color the boxes | Missing numbers |
Maximum sum | 13 Reasons Why |
Friend's Relationship | Health of a person |
Divisibility | A. Movement |
Numbers in a matrix | Sequences |
Split houses | Divisible |
Three primes | Coprimes |
Cost of balloons | One String No Trouble |
Help Jarvis! | Lift queries |
Goki and his breakup | Ali and Helping innocent people |
Book of Potion making | Duration |
Birthday Party | e-maze-in |
Bricks Game | Char Sum |